#-------------------------------------------------
#
# Project created by QtCreator 2023-06-15T14:03:37
#
#-------------------------------------------------

TARGET = TestgRpcServicePlugin
TEMPLATE = lib
CONFIG += console
CONFIG -= qt
CONFIG += c++11
#CONFIG += debug
#CONFIG += `pkg-config --cflags protobuf grpc`
#CONFIG += -std=c++11 `pkg-config --cflags protobuf grpc`

#CONFIG += staticlib
#QMAKE_CXXFLAGS += -fvisibility=hidden

#QMAKE_RPATHDIR += :\'\$\$ORIGIN/commonlib/\'
QMAKE_CXXFLAGS += -fvisibility=hidden
#QMAKE_CXXFLAGS += -g
QMAKE_RPATHDIR += $ORIGIN/commonlib/grpc/lib
QMAKE_RPATHDIR += /usr/local/lib
QMAKE_CXXFLAGS += -finput-charset=UTF-8

DESTDIR = ../TestgRpcServicePlugin/plugin-develop/bundleRepository/bundles/TestgRpcServicePlugin_1.0.0/bin/Linux/IA32/

INCLUDEPATH += $$PWD/grpc/include
INCLUDEPATH += $$PWD/include


QMAKE_RPATHDIR += -L/usr/local/lib
LIBS += -L/usr/local/lib
LIBS += -L$$PWD/../TestgRpcServicePlugin/plugin-develop/bundleRepository/bundles/TestgRpcServicePlugin1.0.0/bin/Linux/IA32/commonlib/grpc/lib
#LIBS += -L$$PWD/plugin-develop/bundleRepository/bundles/TestgRpcServicePlugin_1.0.0/bin/Linux/IA32/commonlib/grpc/lib `pkg-config --libs protobuf grpc++` -pthread -Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed -ldl
LIBS += -L$$PWD/../TestgRpcServicePlugin/plugin-develop/bundleRepository/bundles/TestgRpcServicePlugin_1.0.0/bin/Linux/IA32/commonlib/grpc/lib -lprotobuf -lpthread -lgrpc++ -labsl_statusor -labsl_status -labsl_raw_hash_set -labsl_hashtablez_sampler -labsl_synchronization -labsl_time -labsl_time_zone -labsl_civil_time -labsl_graphcycles_internal -labsl_symbolize -labsl_demangle_internal -labsl_malloc_internal -labsl_stacktrace -labsl_debugging_internal -labsl_exponential_biased -labsl_cord -labsl_str_format_internal -labsl_hash -labsl_bad_variant_access -labsl_bad_optional_access -labsl_strings -labsl_strings_internal -labsl_base -labsl_spinlock_wait -labsl_int128 -labsl_city -labsl_throw_delegate -labsl_raw_logging_internal -labsl_log_severity -lgrpc -laddress_sorting -lre2 -lupb -lcares -lz -labsl_statusor -labsl_status -labsl_raw_hash_set -labsl_hashtablez_sampler -labsl_synchronization -labsl_time -labsl_time_zone -labsl_civil_time -labsl_graphcycles_internal -labsl_symbolize -labsl_demangle_internal -labsl_malloc_internal -labsl_stacktrace -labsl_debugging_internal -labsl_exponential_biased -labsl_cord -labsl_str_format_internal -labsl_hash -labsl_bad_variant_access -labsl_bad_optional_access -labsl_strings -labsl_strings_internal -labsl_base -labsl_spinlock_wait -labsl_int128 -labsl_city -labsl_throw_delegate -labsl_raw_logging_internal -labsl_log_severity -lgpr -labsl_synchronization -labsl_time -labsl_time_zone -labsl_civil_time -labsl_graphcycles_internal -labsl_status -labsl_cord -labsl_str_format_internal -labsl_bad_optional_access -labsl_symbolize -labsl_strings -labsl_strings_internal -labsl_int128 -labsl_demangle_internal -labsl_malloc_internal -labsl_stacktrace -labsl_debugging_internal -labsl_throw_delegate -labsl_base -labsl_spinlock_wait -labsl_raw_logging_internal -labsl_log_severity -lssl -lcrypto
LIBS += -pthread -Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed -ldl


HEADERS += \
		stdfax.h \
		include/IgRpcService.h \
                TestgRpcPluginImp.h \
		TestgRpcServer.h \
		include/InterfaceDef.h \
		include/osgi-core.h \
		include/osgi-predefined.h \
		include/IAllocator.h \
		include/IBundle.h \
		include/IBundleActivator.h \
		include/IBundleContext.h \
		include/ISystemEvent.h \
		include/IEvent.h \
		include/IBundleEvent.h \
		include/IDictionary.h \
		include/ILoggingService.h \
		include/IService.h \
		include/IManifest.h \
		include/IServiceEvent.h \
		include/IServiceManager.h \
		include/IConfigService.h \
		include/ISystemInitializer.h \
		include/IClusterManager.h \
		include/IApplication.h \
		include/IHttpService.h \
		include/IHttpClient.h \
		include/IRPCService.h \
                include/IMonitor.h \
                helloworld.grpc.pb.h \
                helloworld.pb.h

SOURCES += \
        TestgRpcPluginImp.cpp \
        TestgRpcServer.cpp \
        helloworld.grpc.pb.cc \
        helloworld.pb.cc

DEPENDPATH += $$PWD/plugin-develop/bundleRepository/bundles/TestgRpcServicePlugin_1.0.0/bin/Linux/IA32/commonlib/grpc/lib
##unix:!macx:!symbian: LIBS += -L$$PWD/plugin-develop/bundleRepository/bundles/TestgRpcServicePlugin_1.0.0/bin/Linux/IA32/commonlib/grpc/lib `pkg-config --libs protobuf grpc++` -pthread -Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed -ldl
#unix:!macx:!symbian: LIBS += -L$$PWD/plugin-develop/bundleRepository/bundles/TestgRpcServicePlugin_1.0.0/bin/Linux/IA32/commonlib/grpc/lib -lprotobuf -lpthread -lgrpc++ -labsl_statusor -labsl_status -labsl_raw_hash_set -labsl_hashtablez_sampler -labsl_synchronization -labsl_time -labsl_time_zone -labsl_civil_time -labsl_graphcycles_internal -labsl_symbolize -labsl_demangle_internal -labsl_malloc_internal -labsl_stacktrace -labsl_debugging_internal -labsl_exponential_biased -labsl_cord -labsl_str_format_internal -labsl_hash -labsl_bad_variant_access -labsl_bad_optional_access -labsl_strings -labsl_strings_internal -labsl_base -labsl_spinlock_wait -labsl_int128 -labsl_city -labsl_throw_delegate -labsl_raw_logging_internal -labsl_log_severity -lgrpc -laddress_sorting -lre2 -lupb -lcares -lz -labsl_statusor -labsl_status -labsl_raw_hash_set -labsl_hashtablez_sampler -labsl_synchronization -labsl_time -labsl_time_zone -labsl_civil_time -labsl_graphcycles_internal -labsl_symbolize -labsl_demangle_internal -labsl_malloc_internal -labsl_stacktrace -labsl_debugging_internal -labsl_exponential_biased -labsl_cord -labsl_str_format_internal -labsl_hash -labsl_bad_variant_access -labsl_bad_optional_access -labsl_strings -labsl_strings_internal -labsl_base -labsl_spinlock_wait -labsl_int128 -labsl_city -labsl_throw_delegate -labsl_raw_logging_internal -labsl_log_severity -lgpr -labsl_synchronization -labsl_time -labsl_time_zone -labsl_civil_time -labsl_graphcycles_internal -labsl_status -labsl_cord -labsl_str_format_internal -labsl_bad_optional_access -labsl_symbolize -labsl_strings -labsl_strings_internal -labsl_int128 -labsl_demangle_internal -labsl_malloc_internal -labsl_stacktrace -labsl_debugging_internal -labsl_throw_delegate -labsl_base -labsl_spinlock_wait -labsl_raw_logging_internal -labsl_log_severity -lssl -lcrypto
#LIBS += `pkg-config --libs protobuf grpc++`
#unix:!macx:!symbian: LIBS += -pthread -Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed -ldl

##!build_pass:system(bash ./install_lib.sh)
